'\" t
.\"     Title: ne_set_request_flag
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 23 November 2024
.\"    Manual: neon API reference
.\"    Source: neon 0.34.0
.\"  Language: English
.\"
.TH "NE_SET_REQUEST_FLAG" "3" "23 November 2024" "neon 0.34.0" "neon API reference"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ne_set_request_flag, ne_get_request_flag \- set and retrieve per\-request flags
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include <ne_request\&.h>
.fi
.ft
.HP \w'void\ ne_set_request_flag('u
.BI "void ne_set_request_flag(ne_request\ *" "req" ", ne_request_flag\ " "flag" ", int\ " "value" ");"
.HP \w'int\ ne_get_request_flag('u
.BI "int ne_get_request_flag(ne_request\ *" "req" ", ne_request_flag\ " "flag" ");"
.SH "DESCRIPTION"
.PP
The
\fBne_set_request_flag\fR
function enables or disables a per\-request flag\&. Passing a non\-zero
\fIvalue\fR
argument enables the flag, and zero disables it\&.
.PP
The following flags are defined:
.PP
\fBNE_REQFLAG_EXPECT100\fR
.RS 4
enable this flag to use the "Expect: 100\-continue" feature of HTTP/1\&.1, which allows the server to process request headers without reading the entire request body\&. This saves time and bandwidth if the server gives an authentication challenge (requiring the request to be resent), but has interoperability problems with some older servers\&.
.RE
.PP
\fBNE_REQFLAG_IDEMPOTENT\fR
.RS 4
disable this flag if the request uses a non\-idempotent method such as
POST
.RE
.PP
\fBNE_REQFLAG_1XXTIMEOUT\fR (default on)
.RS 4
disable this flag to disable overall timeout when reading interim (1xx) responses;
.RE
.SH "RETURN VALUE"
.PP
The
\fBne_get_request_flag\fR
function returns zero if a flag is disabled, less than zero if the flag is not supported, or greater than zero if the flag is enabled\&.
.SH "SEE ALSO"
.PP
ne_request_create\&.
.SH "COPYRIGHT"
.br
Copyright \(co 2001-2024 Joe Orton
.br
